package com.crm.jdy.common.dto;
import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.crm.jdy.common.utils.PageUtils;
import com.crm.jdy.common.vo.PageVO;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.Email;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;

/**   
 * @Description:(客户基本信息管理实体类)
 * 
 * @version: V1.0
 * @author: kong
 * 
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class ClientInfoDto extends PageVO implements Serializable {

	private static final long serialVersionUID = 154219822L;

	@TableId(value = "cid", type = IdType.ID_WORKER_STR)
	@ApiModelProperty(name = "cid" , value = "客户主键")
	private String cid;

	@NotBlank(message = "客户名称非空")
	@ApiModelProperty(name = "cName" , value = "客户名称")
	private String cName;

	@ApiModelProperty(name = "cSource" , value = "客户来源")
	private String cSource;

	@ApiModelProperty(name = "cPhone" , value = "客户手机号")
	private String cPhone;

	@ApiModelProperty(name = "cUrl" , value = "客户官网")
	private String cUrl;

	@Email(message = "该值为邮箱")
	@ApiModelProperty(name = "cEmail" , value = "客户邮箱")
	private String cEmail;

	@ApiModelProperty(name = "cLevel" , value = "客户级别")
	private String cLevel;


	@ApiModelProperty(name = "cNextTime" , value = "客户下次联系时间")
	private String cNextTime;

	@ApiModelProperty(name = "cStatus" , value = "客户状态")
	private String cStatus;

	@ApiModelProperty(name = "cChargePerson" , value = "客户负责人")
	private String cChargePerson;

	@ApiModelProperty(name = "cCreatePerson" , value = "客户创建人")
	private String cCreatePerson;

	@ApiModelProperty(name = "cBusiness" , value = "客户行业")
	private String cBusiness;

	@ApiModelProperty(name = "cRank" , value = "客户级别")
	private String cRank;

	@ApiModelProperty(name = "cRelationTime" , value = "上次联系时间")
	private String cRelationTime;

	@ApiModelProperty(name = "cRemark" , value = "备注信息")
	private String cRemark;

	@ApiModelProperty(name = "cLocation" , value = "地址信息")
	private String cLocation;

	@ApiModelProperty(name = "cProvince" , value = "省份信息")
	private String cProvince;

	@ApiModelProperty(name = "cCity" , value = "市区信息")
	private String cCity;

	@ApiModelProperty(name = "cCounty" , value = "县信息")
	private String cCounty;

	@JsonIgnore
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
	@ApiModelProperty(name = "createTime" , value = "创建时间")
	@TableField(fill = FieldFill.INSERT)
	private Date createTime;

	@JsonIgnore
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
	@ApiModelProperty(name = "updateTime" , value = "更新最新时间")
	@TableField(fill = FieldFill.INSERT_UPDATE)
	private Date updateTime;

	@JsonIgnore
	@TableLogic
	@ApiModelProperty(name = "isDelete" , value = "1删除，0正常")
	private Integer isDelete;

    

}
